GalleryView

constructor(context: Context, attrs: AttributeSet)

Constructor for inflating the view from XML.

Parameters

context

The Context the view is running in, through which it can access the current theme, resources, etc.

attrs

The attributes of the XML tag that is inflating the view.


constructor(context: Context, attrs: AttributeSet, defStyle: Int)

Constructor for inflating the view from XML with a default style.

Parameters

context

The Context the view is running in, through which it can access the current theme, resources, etc.

attrs

The attributes of the XML tag that is inflating the view.

defStyle

An attribute in the current theme that contains a reference to a style resource that supplies default values for the view. Can be 0 to not look for defaults.


constructor(context: Context, module: Module)

Programmatic constructor for creating a GalleryView instance. This is the primary constructor used for setting up the gallery with module data. It handles layout inflation, dependency injection, and initialization of various components like handlers and listeners.

Parameters

context

The application context.

module

The Module (cast to com.reveldigital.player.api.Module) containing the playlist and configuration for this gallery.

Throws

if the provided module is not of type com.reveldigital.player.api.Module.